<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        div{
            border: #000000 solid 1px;
        }
        #goodslist{
            position: absolute;
            top: 60px;
            width: 100%;
        }
        #goodslist div{
            width: 20%;
            height: 200px;
            margin-left: 52px;
            margin-top: 50px;
            float: left;
            text-align: center;
        }
        #goodslist img{
            width: 200px;
            height: 160px;
        }
    </style>
    <link rel="stylesheet" href="../static/layui/css/layui.css">
    <script src="../static/layui/layui.js"></script>
</head>
<body>
    <div id="indexhead" style="width: 100%;height: 60px;position: absolute;z-index: 5;">
        <iframe MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no src="header.html" width="100%"></iframe>
    </div>
    <div id="goodslist" th:each="s:${info.list}">
        <div th:if="${s.isauction}==0">
            <a th:href="@{|/goodinfor/${s.id}|}">
                <img th:src="@{${s.imageurl}}"/>
                <p>[[${s.goodsname}]]</p>
            </a>
        </div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
    <input type="hidden" name="currentPage" value="1" id="currentPage">
   <div>
       <a href="javascript:search(1)">首页</a>
       <a th:if="${info.hasPreviousPage}" th:href="@{|javascript:search(${info.prePage})|}">上一页</a>
       <span th:if="${!info.hasPreviousPage}">上一页</span>
       <a th:if="${info.hasNextPage}" th:href="@{|javascript:search(${info.nextPage})|}">下一页</a>
       <span th:if="${!info.hasNextPage}">下一页</span>
       <a th:href="@{|javascript:search(${info.pages})|}">尾页</a>
   </div>


    <script>
        function search(page){
            $("#currentPage").val(page);//当前页
        }
    </script>


</body>
</html>